package com.sc.nft.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.EcologyHatchDirectThrustIncomeType;
import com.sc.nft.enums.UserEcologyHatchRecordsStatus;
import com.sc.nft.enums.UserEcologyUpperLimitTypeEnum;
import com.sc.nft.sup.SuperEntity;
import java.math.BigDecimal;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 生态-孵化-用户记录表(sc_user_ecology_hatch_records)实体类
 *
 * @author Sun
 * @since 2023-10-13 17:22:12
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_user_ecology_hatch_records")
public class UserEcologyHatchRecords extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long userId;
    /**
     * 方式id
     */
    private Long methodId;
    /**
     * dao id
     */
    private Long daoId;

    /**
     * 孵化配置id
     */
    private Long ecologyHatchId;
    /**
     * 上级用户id
     */
    private Long recommendUserId;
    /**
     * 藏品id
     */
    private Long collectionId;
    /**
     * 藏品名称
     */
    private String collectionName;
    /**
     * 藏品图片
     */
    private String collectionImage;
    /**
     * 孵化周期(天)
     */
    private Integer hatchCycle;
    /**
     * 已经持有了多少天
     */
    private Integer alreadyDay;
    /**
     * 用户消耗数量(藏品)
     */
    private Integer useCount;
    /**
     * 孵化次数(质押份数)
     */
    private Integer hatchCount;
    /**
     * 生态积分(藏品发行价*消耗数量*孵化次数)
     */
    private BigDecimal ecologyPoints;

    /**
     * 实际生态积分(藏品发行价*熔炼配置的消耗次数*孵化次数)
     */
    private BigDecimal realEcologyPoints;

    /**
     * 动态奖励发放数量
     */
    private BigDecimal dynamicRewardAmount;

    /**
     * 状态 : 1:进行中 2:已结束
     */
    private UserEcologyHatchRecordsStatus status;
    /**
     * 是否结算了直推收益 0:否 1:是
     */
    private EcologyHatchDirectThrustIncomeType isSettleDirectThrustIncome;
    /**
     * 是否需要结算团对收益 0:否 1:是
     */
    private Boolean isSettleTeamIncome;
    /**
     * 有效业绩
     */
    private BigDecimal platformEffectivePerformance;
    /**
     * 有效业绩
     */
    private BigDecimal daoEffectivePerformance;
    /**
     *  是否结算了分成业绩
     */
    private Boolean isSettleDivideInto;

    /**
     * 用户归属的daoId
     */
    private Long userInDaoId;

}